//2009/08/14 15:54:40
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <sstream>
#include <algorithm>

using namespace std;

class CultureShock
{
public:
    string translate(string text)
    {
        string res, temp;
        stringstream s(text);
        while (s >> temp)
        {
            if (temp == "ZEE") res += " ZED";
            else res += " " + temp;
        }
        return res.substr(1);
    }
};
